package com.common.help;

import java.io.InputStream;
import java.util.Properties;

public class Test15 {
	
	public static void main(String[] args) {
		ReadFile read = new ReadFile();
		read.test();
	}
}
class ReadFile{
	
	private static Properties pro = new Properties();;
	
	static{
		InputStream is = ReadFile.class.getClassLoader().getResourceAsStream("config/jdbc.properties");
		try {
			pro.load(is);
		}catch(Exception e){
			throw new RuntimeException("空指针呀！");
		}
	}

	public void test(){
		System.out.println(pro.get("url"));
		
	}
}
